<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>if语句</title>
</head>
<body>
  {% if age > 18 %}
  <div>您已成年!</div>
  {% elif age<18 %}
  <div>您还未成年!</div>
  {% else %}
  <div>您刚成年</div>
  {% endif %}
</body>
</html>